//
//  DBDelegate.h
//  prototipo1Movies
//
//  Created by David Antonio Jiménez Xolalpa on 26/09/10.
//  Copyright 2010 ITESM - CCM. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>


@interface DBDelegate : NSObject {
	// Database variables
	NSString *databaseName;
	NSString *databasePath;
	
	// Array to store the cafeterias
	NSMutableArray * movies;
	NSMutableArray * estrenos;
	NSMutableArray * top;
}

- (id) init;
-(void) checkAndCreateDatabase;
-(void) readMoviesFromDatabase;
-(void) readEstrenosFromDatabase;
-(void) readTopFromDatabase;
@property (nonatomic, retain) NSMutableArray *movies;
@property (nonatomic, retain) NSMutableArray *estrenos;
@property (nonatomic, retain) NSMutableArray *top;

@end
